export interface User {
  id: string;
  username: string;
  email: string;
  role: string;
  phone?: string;
  token?: string;
}

export interface LoginParams {
  username: string;
  password: string;
}

export interface RegisterParams extends LoginParams {
  email: string;
  phone?: string;
}

export interface LoginResponse {
  code: number;
  data: {
    token: string;
    user: User;
  };
  message: string;
}

export interface UserState {
  user: User | null;
  token: string | null;
  isAuthenticated: boolean;
} 